package com.tencreat.mapper.mall;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tencreat.domain.mall.MallGoodsNorms;
import com.tencreat.domain.mall.MallSetmealNorms;
import org.apache.ibatis.annotations.Param;

/**
 * 商品规格参数Mapper接口
 * 
 * @author tencreat
 * @date 2022-01-08
 */
public interface MallSetmealNormsMapper extends BaseMapper<MallSetmealNorms> {

    int getNewSortOrder();

    void exchange(@Param("id") Long id, @Param("sourceId")Long sourceId);


    Long getUpId(@Param("sortOrder")Integer sortOrder,@Param("goodsId") Long goodsId);


    Long getDownId(@Param("sortOrder")Integer sortOrder,@Param("goodsId") Long goodsId);
}
